package org.sang.bbbig.csv;

import org.sang.bbbig.model.Student;

import java.util.ArrayList;
import java.util.List;

public class DataUtil {
    public static List<Student> createDataList(String name) {
        List<Student> result=new ArrayList<>();
        for(int i=1;i<=10;i++){
            Student user=new Student();
            user.setId(i);
            user.setName(name+"_"+i);
            user.setGender(i%2==0?"女":"男");
            user.setPassword("123456");
            user.setClassroom("土木");
            result.add(user);
        }
        return result;
    }


}
